<?php
/**
 *
 * Associate Parent.
 * In the case of this customer entry is attached to other customers
 *
 */
use Fox\Html\Anchor;
$id = Xview::instance()->val("customerid");
$block = new Fox\Html\Block("bParents");
$grid = new Fox\Grid("gParents");
$grid->fieldcat(array('type','name1','function','phone1',array('email','email1')));
/*$grid->fieldcat()->field("name1")
 ->setAnchor(new Anchor("?mod=customer&act=update&",array("customerid" => 'partnerid'),"_blank"));
 */
$grid->fieldcat()->switchToObjectMode();
$block->add($grid);
return $block;